package router

import (
	"zsc-boot/app/system_layer/api"
	"zsc-boot/core/web"
)

var serviceDocumentApi = api.ServiceDocumentApi

func InitServiceDocumentRouterGroup() {
	userGroup := web.GetGin().Group("document")
	{
		userGroup.POST("/upload", serviceDocumentApi.SingleFileUpload)               // 上传文件
		userGroup.GET("/getDocumentList", serviceDocumentApi.GetServiceDocumentList) // 获取文件列表
		userGroup.DELETE("/batch", serviceDocumentApi.Delete)                        // 获取文件列表
	}

	userPublicGroup := web.GetGin("public").Group("document")
	userPublicGroup.GET("/fileDownload", serviceDocumentApi.FileDownload)
	userPublicGroup.GET("/view", serviceDocumentApi.View)
}
